﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GalleryDataProvider
{
    public static class ConnectionProvider
    {
        public static SqlConnection Connection { get; private set; }

        static ConnectionProvider()
        {//win authentikációs változat
            Connection = new SqlConnection(
               "Data Source=.\\SQLEXPRESS;" +
               "Initial Catalog=gallerydb;" +
               "Integrated Security = true;");
        
            //Connection = new SqlConnection(
            //"Data Source=.\\SQLEXPRESS;" +
            //"User Id=gallery_user;" +
            //"Password=galleryPass123;");
            Connection.Open();
        }
    }
}
